import Home from '../pages/home/Home'
import Comment from '../pages/comment/Comment'
import Seller from '../pages/seller/Seller'
import Goods from '../pages/goods/Goods'
import Detail from '../pages/detail/Detail'
import { Navigate } from 'react-router-dom'


export const routes = [
    {path:'/',element:<Navigate to='/home' />},
    {
        path:'/home',
        element:<Home/>,
        children:[
            {
                path:'/home',
                element:<Navigate to='/home/goods' />
            },
            {
                path:'/home/goods',
                element:<Goods />,
            },
            {
                path:'/home/comment',
                element:<Comment />
            },
            {
                path:'/home/seller',
                element:<Seller />
            }
        ]
    },
    {
        path:'/detail',
        element:<Detail />
    }
]